package com.wakaca.design.pattern.creational.factorymethod;

/**
 * Created by wakaca
 */
public class Test {
    public static void main(String[] args) {

        // 各个产品都拥有各自的工厂
        VideoFactory videoFactory1 = new PythonVideoFactory();
        VideoFactory videoFactory2 = new JavaVideoFactory();
        VideoFactory videoFactory3 = new FEVideoFactory();
        Video video = videoFactory1.getVideo();
        video.produce();

    }

}
